package com.sip.stream.utils.zfy.event;

public class ZFYPlatformEvent {
    //平台异常类型
    public static final String EVENT_TYPE_ERROR = "EVENT_TYPE_ERROR";
    //平台注册失败
    public static final String EVENT_TYPE_REGUSTER_FAILED = "EVENT_TYPE_REGUSTER_FAILED";
    //平台注册心跳
    public static final String EVENT_TYPE_REGUSTER_KEEP_ALIVE = "EVENT_TYPE_REGUSTER_KEEP_ALIVE";
    //平台注册成功
    public static final String EVENT_TYPE_REGUSTER_SUCCESS = "EVENT_TYPE_REGUSTER_SUCCESS";

    private int messageRes;
    private String type;
    private String value;

    public ZFYPlatformEvent(String type) {
        this.type = type;
    }

    public ZFYPlatformEvent(String type, int messageRes) {
        this.type = type;
        this.messageRes = messageRes;
    }

    public ZFYPlatformEvent(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getMessageRes() {
        return this.messageRes;
    }

    public void setMessageRes(int messageRes) {
        this.messageRes = messageRes;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
